<ul class="nav navbar-nav">
    @php
        $data= (new App\Miya\Tools\ClearTool())->fileInfo();
    @endphp
    @if (config('app.debug'))
        <li class="dropdown tasks-menu">
            <a href="/_help" target="_blank" title="Help页面">🧂</a>
        </li>
        <li class="dropdown tasks-menu">
            <a href="/_copyright" target="_blank" title="Copyright页面">👑</a>
        </li>
    @endif
    <li class="dropdown tasks-menu">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            🗑️
            <span class="label label-danger">{{ count($data) }}</span>
        </a>
        <ul class="dropdown-menu" style="margin-left: -235px">
            <li class="header">系统垃圾清理</li>
            <li>
                <!-- inner menu: contains the actual data -->
                <ul class="menu">
                    @foreach($data as $key=>$value)
                        <li><!-- Task item -->
                            <a href="{{ $value['url'] }}">
                                <h3>
                                    {{ $value['name'] }}
                                    @if (!empty($value['count']))
                                        <small class="pull-right">{{ $value['count'] }} 个</small>
                                    @else
                                        <small class="pull-right">{{ $value['size'] }}</small>
                                    @endif
                                </h3>
                                <small> {{ str_replace(base_path(),'',$value['path']) }} </small>
                            </a>
                        </li>
                    @endforeach
                </ul>
            </li>
        </ul>
    </li>
    <li class="dropdown notifications-menu">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            🛎️
        </a>
        <ul class="dropdown-menu" style="margin-left: -235px">
            <li class="header">服务器信息如下</li>
            <li>
                <ul class="menu">
                    <li>
                        <a href="#">
                            <i class="fa fa-product-hunt text-aqua"></i> PHP版本:{{ 'PHP/'.PHP_VERSION }}
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-code text-yellow"></i> Laravel版本:{{ app()->version() }}
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-code-fork text-red"></i>
                            Miya版本:{{ array_key_first(config('version.history')) }}
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-wifi text-green"></i>
                            服务器:{{ Arr::get($_SERVER, 'SERVER_SOFTWARE') }}
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-magic text-red"></i>主机:{{ php_uname() }}
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-clock-o text-success"></i>时区:{{ config('app.timezone') }}
                        </a>
                    </li>
                </ul>
            </li>
        </ul>
    </li>
</ul>
